package com.example.jiaju.entity;

import com.google.gson.annotations.SerializedName;

import java.io.Serializable;
import java.util.List;

@lombok.NoArgsConstructor
@lombok.Data
public class House {

    @SerializedName("msg")
    public String msg;
    @SerializedName("code")
    public Integer code;
    @SerializedName("page")
    public PageDTO page;

    @lombok.NoArgsConstructor
    @lombok.Data
    public static class PageDTO {
        @SerializedName("totalCount")
        public Integer totalCount;
        @SerializedName("pageSize")
        public Integer pageSize;
        @SerializedName("totalPage")
        public Integer totalPage;
        @SerializedName("currPage")
        public Integer currPage;
        @SerializedName("list")
        public List<ListDTO> list;

        @lombok.NoArgsConstructor
        @lombok.Data
        public static class ListDTO implements Serializable{
            @SerializedName("houseId")
            public Integer houseId;
            @SerializedName("houseName")
            public String houseName;
            @SerializedName("housePrice")
            public Double housePrice;
            @SerializedName("houseArea")
            public Double houseArea;
            @SerializedName("houseState")
            public String houseState;
            @SerializedName("houseLabel")
            public String houseLabel;
            @SerializedName("housePhone")
            public String housePhone;
            @SerializedName("houseAdd")
            public String houseAdd;
            @SerializedName("houseImg")
            public String houseImg;
            @SerializedName("houseModelImg")
            public String houseModelImg;
        }
    }
}
